<template>
  <div id="loginPart">
    <div class="login_box">
        <el-form class="login_form">
            <el-form-item label="用户名" prop="name">
                <el-input type="input"></el-input>
            </el-form-item>
            <el-form-item label="密码" prop="passWord">
                <el-input></el-input>
            </el-form-item>
            <el-form-item class="login_button">
                <el-button>登录</el-button>
                <el-button>重置</el-button>
            </el-form-item>
            <el-form-item class="toEnroll" >
                <el-link :underline="false">还未注册？快来加入我们吧</el-link>
            </el-form-item>
        </el-form>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
        
    }
  },
};
</script>

<style scoped lang="less">
#loginPart{
    background: no-repeat url("./../imgs/loginPart/loginImg.jpg");
    -webkit-background-size: cover;
    background-size: cover;
    height: 100vh;
    // display: flex;
    position: relative;
    .login_box{
        background-color: rgba(255, 255, 255, 0.5);
        border-radius: 5px;
        padding: 20px;
        width: 450px;
        height: 300px;
        // justify-content: center;
        // align-items: center;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        .login_form{
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            .toEnroll{
                align-self: flex-end;
            }
        }
    }
}
</style>